<header>
    <div class="taskbar">
        <div class="box-menu">
            <a href="<?php echo base_url('/'); ?>" class="<?php if($this->router->fetch_class()=='home'){echo 'btnMenuSelect'; }else {echo 'btnMenu';} ?>">
                <div class="btnMenuLeft all">
                    <?php
                    if($this->router->fetch_class()=='home'){
                        echo '<div class="btnMenuSelectRight"></div>';
                    }else {
                        echo '<div class="btnMenuRight"></div>';
                    }
                    ?>


                </div>
            </a>
            <?php

            foreach(get_category(0) as $cat){
                ?>

                <a href="<?php echo  get_post_list_url($this->province_id,$cat['id']); ?>" class=" <?php if($cat['id']==$category_id){ echo 'btnMenuSelect';}else {echo 'btnMenu';} ?>">
                    <div class="btnMenuLeft <?php echo addClass($cat['name']); ?>">
                        <div class="btnMenuRight <?php if($cat['id']==$category_id){ echo 'btnMenuSelectRight';} ?>"><?php echo $cat['name']; ?></div>
                    </div>
                </a>
                <?php } ?>
        </div>
        <div class="box-menu-text">
<?php if(is_member()){  ?>
            <div class="sMenu">
                <a rel="nofollow" href="<?php echo site_url('dang-nhap'); ?>" >
                <div class="left mItem">

                    <div class="dangky">Đăng ký</div>

                </div>
                </a>
                <a rel="nofollow" href="<?php echo site_url('dang-ky'); ?>"">
                    <div class="left mItem rborder"><div class="dangnhap">Đăng nhập</div></div>
                </a>
            </div>

            <?php }else {
            ?>
            <div class="dangnhap_btn">
                <a rel="nofollow" href="<?php echo site_url('dang-nhap'); ?>" class="dangnhap_btn"><b>Đăng nhập</b></a>
            </div>
            <span class="sepera"> </span>
            <div class="dangky_btn">
                <a rel="nofollow" href="<?php echo site_url('dang-ky'); ?>" class="dangky_btn" title="Đăng ký tài khoản"><b>Đăng ký</b></a>
            </div>
            <?php } ?>
        </div>
    </div>
</header>